﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="rssList.aspx.vb" Inherits="Prototype.rssList"
    ContentType="text/html" %>

<%@ Import Namespace="System.Data" %>
<asp:repeater id="Repeater1" runat="server" datasourceid="SqlDataSource1">
    <HeaderTemplate>
<rss version="2.0">
<channel>
<title>List of Smart Phone Discussion</title>
<description>***Smart Phones discussion***</description>
</HeaderTemplate>
<ItemTemplate>
<item>
<title> <%# FormatForXML(DataBinder.Eval(Container.DataItem, "Bookname"))%></title>
            <br />
            <description>
                        <author><strong>Author: </strong><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Author"))%></author>
            <br />
            
                       
            </description>
            
             <link> Details.aspx?ID=<%# FormatForXML(DataBinder.Eval(Container.DataItem, "ID"))%></link>
            <br />
<hr />
</item>

</ItemTemplate>
<FooterTemplate>
</channel>
</rss>
</FooterTemplate>
</asp:repeater>
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:booksConn %>"
    providername="<%$ ConnectionStrings:booksConn.ProviderName %>" selectcommand="SELECT TOP 5 * FROM [books] ORDER BY [ID] DESC">
</asp:sqldatasource>
